package operation.android;

import freemarker.template.TemplateException;
import operation.freeMarker.util.FreemarkerUtil;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * Android页面自动生成代码 入口 测试
 */
public class AutoWriteAndroid {
    /**
     * 模板生成路径
     */
    static String toPath = "D:\\workspace\\abandon-me\\server\\src\\main\\java\\operation\\android\\out\\";



    public static void main(String[] args) throws IOException, TemplateException {
        FreemarkerUtil.initConfig(2,"test.ftl");
        Map<String,Object> map = new HashMap<>();
        map.put("Domain", "Hermiwwwwt");
        map.put("domain", "hermit");
        FreemarkerUtil.generator(toPath + "Test.java", map);
    }
}
